import request from '@/utils/request'

// 查询考试场次列表
export function listEx_score_exam_session(query) {
    return request({
        url: '/ex_score_exam_session/ex_score_exam_session/list',
        method: 'get',
        params: query
    })
}

// 查询考试场次详细
export function getEx_score_exam_session(id) {
    return request({
        url: '/score/ex_score_exam_session/' + id,
        method: 'get'
    })
}

// 新增考试场次
export function addEx_score_exam_session(data) {
    return request({
        url: '/score/ex_score_exam_session',
        method: 'post',
        data: data
    })
}

// 修改考试场次
export function updateEx_score_exam_session(data) {
    return request({
        url: '/score/ex_score_exam_session',
        method: 'put',
        data: data
    })
}

// 重置考试场次考官
export function clear_session_examiner(id) {
    return request({
        url: '/score/ex_score_exam_session/clear_examiner/'+id,
        method: 'put'
    })
}

// 删除考试场次
export function delEx_score_exam_session(id) {
    return request({
        url: '/score/ex_score_exam_session/' + id,
        method: 'delete'
    })
}

// 获取考试成绩列表
export function exam_score_list(query) {
    return request({
        url: '/score/ex_score_exam_session/exam_score_list',
        method: 'get',
        params: query
    })
}

// 查询考试分配学员详细并格式化
export function select_allot_sheet_parse(id) {
    return request({
        url: '/score/ex_score_exam_session/select_allot_sheet_parse/' + id,
        method: 'get'
    })
}
